/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wsapi.chat;

import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.TextWebSocketHandler;

/**
 *
 * @author yangyan <y.os@qq.com>
 */
public class UserMessageWebSocketHandler extends TextWebSocketHandler {

//    @Autowired
//    private SimpMessagingTemplate template;
    @Override
    protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception {
        System.out.println("后台接收到：" + message.getPayload());
    }

}
